import request from '@/utils/request';

// 注册
export const user = (data) => {
  return request({
    method: 'POST',
    url: '/login/users',
    data,
  });
};

// 登录
export const login = (data) => {
  return request({
    method: 'POST',
    url: 'login/siginIn',
    data,
  });
};